package com.rosiminc.pm.gui;

import org.newdawn.slick.*;
import org.newdawn.slick.state.*;

public class PipesManiaGame extends StateBasedGame {

	public static final int MENU_STATE = 0;
	public static final int PLAY_STATE = 1;
	public static final int OPTIONS_STATE = 2;
	
	public PipesManiaGame(String name) {
		super(name);
	}

	@Override
	public void initStatesList(GameContainer app) throws SlickException {
		this.addState(new PipesManiaPlayState(PLAY_STATE));
		//TODO Add other states
	}

	public static void main(String[] args) throws SlickException
	{
		int width = 800;
		int height = 600;
		
		AppGameContainer container = new AppGameContainer(
				new PipesManiaGame("Pipes Mania 1.0"));
		
		container.setVSync(true);
		container.setVerbose(false);
		container.setTargetFrameRate(60);
		container.setDisplayMode(width, height, false);
	}
}
